<template>
  <div class="select" :class="{ active: isActive }">
    <slot />
  </div>
</template>

<script>
export default {
  name: 'SelectCard',
  props: {
    isActive: {
      default: false
    }
  },
  setup() {}
}
</script>

<style lang="scss" scoped>
.select {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  box-sizing: border-box;
  height: 32px;
  border-radius: 8px;
  color: $font_unactive;
  transition: all 0.25s;
  &:hover {
    background-color: $primary;
    color: #fff;
  }
}
.active {
  background-color: $primary;
  color: #fff;
}
</style>
